//
//  BDGuanYuViewController.m
//  BeidouMall
//
//  Created by qie on 16/7/18.
//  Copyright © 2016年 qie. All rights reserved.
//

#import "BDGuanYuViewController.h"

@interface BDGuanYuViewController ()

@property (weak, nonatomic) IBOutlet UILabel *versionLabel;
@property (weak, nonatomic) IBOutlet UITextView *textView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textViewHeight;

@end

@implementation BDGuanYuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"关于背兜";
    
    NSString *localVersion = [[[NSBundle mainBundle]infoDictionary]objectForKey:@"CFBundleShortVersionString"];
    self.versionLabel.text = [NSString stringWithFormat:@"版本号：%@",localVersion];
    
    if (kScreen_Width <= 320.0) {
        self.textViewHeight.constant = 128.0;
    } else if (kScreen_Width > 320.0 && kScreen_Width <= 375.0) {
        self.textViewHeight.constant = 118.0;
    } else {
        self.textViewHeight.constant = 108.0;
    }
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
